package org.ls.petclinic.dao.impl;

import org.ls.petclinic.dao.TypeDao;
import org.ls.petclinic.pojo.Type;

import java.util.List;

/**
 * @author 浪矢先生
 * @description
 * @create 2022-12-06 14:05
 */
public class TypeDaoImpl extends BaseDao implements TypeDao {
    @Override
    public List<Type> all() {
        return queryForList(Type.class,"select * from type");
    }

    @Override
    public Type getById(Long id) {

        return queryForOne(Type.class,"select * from type where id =?",id);
    }
}
